const body = JSON.parse($request.body)
if (body.serviceId === 'RechargeService' && body.requestSource === '3') {
    console.log(`charging before body:\n${JSON.stringify(body)}`);
    const data = JSON.parse(body.data)
    if (data.insuredSource === '02') {
        const time = data.payMoney === '240' ? '60' : '360'
        data.payMoney = time
        body.data = JSON.stringify(data)
        console.log(`charging after body:\n${JSON.stringify(body)}`);
        $done({body: JSON.stringify(body)})
    } else {
        $done({})
    }
} else {
    $done({})
}